package com.platform.service;

import com.platform.dao.ApiUserGroupPurchaseFakeDataMapper;
import com.platform.entity.UserGroupPurchaseFakeDataVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApiUserGroupPurchaseFakeDataService {
    @Autowired
    private ApiUserGroupPurchaseFakeDataMapper userGroupPurchaseFakeDataMapper;

    public List<UserGroupPurchaseFakeDataVo> queryByGroupPurchaseId(Integer groupPurchaseId){
        return userGroupPurchaseFakeDataMapper.queryByGroupPurchaseId(groupPurchaseId);
    }
    public void save(UserGroupPurchaseFakeDataVo userGroupPurchaseFakeDataVo){userGroupPurchaseFakeDataMapper.save(userGroupPurchaseFakeDataVo);}
    public UserGroupPurchaseFakeDataVo queryObjectByUserId(Long userId){
        return userGroupPurchaseFakeDataMapper.queryObjectByUserId(userId);
    }
}
